import request from '@/utils/request'

/*------get白名单数据--------*/
export function getWhiteListData(query) {
    return request({
      url: '/api/system/api_white_list/',
      method: 'get',
      params: { ...query, page:1,limit: 999 }
    })
  }
  /*------add白名单数据--------*/
export function addWhiteListData(data) {
  return request({
    url: '/api/system/api_white_list/',
    method: 'post',
    data
  })
}
/*------edit白名单数据--------*/
export function editWhiteListData(obj) {
  return request({
    url: '/api/system/api_white_list/'+obj.id+'/',
    method: 'put',
    data:obj
  })
}
/*------delete白名单数据--------*/
export function delWhiteListData(pk) {
  return request({
    url: '/api/system/api_white_list/'+pk+'/',
    method: 'delete',
  })
}
